package com.czmh.etc.onlinepubsys.services.impl;

import com.czmh.etc.onlinepubsys.maper.EtcRewardMapper;
import com.czmh.etc.onlinepubsys.model.EtcReward;
import com.czmh.etc.onlinepubsys.model.EtcStock;
import com.czmh.etc.onlinepubsys.services.EtcRewardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


@Service("etcRewardService")
public class EtcRewardServiceImpl implements EtcRewardService {
    @Autowired
    private EtcRewardMapper etcRewardMapper;

    @Override
    public EtcReward queryObject(String id) {
        return etcRewardMapper.queryObject(id);
    }

    @Override
    public List<EtcReward> queryList(Map<String, Object> map) {
        return etcRewardMapper.queryList(map);
    }

    @Override
    public int queryTotal(Map<String, Object> map) {
        return etcRewardMapper.queryTotal(map);
    }

    @Override
    public List<EtcStock> queryStockList(Map<String, Object> map) {
        return etcRewardMapper.queryStockList(map);
    }

    @Override
    public int queryStockTotal(Map<String, Object> map) {
        return etcRewardMapper.queryStockTotal(map);
    }

    @Override
    public int save(EtcReward etcReward) {
        return etcRewardMapper.save(etcReward);
    }

    @Override
    public int saveSelective(EtcReward etcReward) {
        return etcRewardMapper.saveSelective(etcReward);
    }

    @Override
    public int saveList(List<EtcReward> etcRewards) {
        return etcRewardMapper.saveList(etcRewards);
    }

    @Override
    public int update(EtcReward etcReward) {
        return etcRewardMapper.update(etcReward);
    }

    @Override
    public int delete(String id) {
        return etcRewardMapper.delete(id);
    }

    @Override
    public int deleteBatch(String[] ids) {
        return etcRewardMapper.deleteBatch(ids);
    }

}
